Skip to content

n64cart: use strscpy() in n64cart_probe#769

Open
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1085653=>linus-master
Open

n64cart: use strscpy() in n64cart_probe#769
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1085653=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Apr 26, 2026

Pull request for series with
subject: n64cart: use strscpy() in n64cart_probe
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1085653

strcpy() has been deprecated¹ because it performs no bounds checking on
the destination buffer, which can lead to buffer overflows. While the
current code works correctly, replace strcpy() with the safer strscpy()
to follow secure coding best practices.

¹ https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy

Signed-off-by: Thorsten Blum <[email protected]>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 26, 2026

Upstream branch: dd6c438
series: https://patchwork.kernel.org/project/linux-block/list/?series=1085653
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant